package com.ruicar.afs.cloud.common.modules.afscorebusiness.enums;

import com.ruicar.afs.cloud.common.core.enums.AfsBaseEnum;
import com.ruicar.afs.cloud.common.core.enums.annotations.AfsEnum;

/**
 * @author xueyu.ma
 * @description: 保险类型
 * @date 2020/6/27
 */
public enum InsuranceTypeEnum implements AfsBaseEnum {

    @AfsEnum(key = "1", desc = "商业险", mapping = {"afs-case=1", "afs-contract=BUSINESS"})
    BUSINESS("1", "商业险"),

    @AfsEnum(key = "2", desc = "交强险", mapping = {"afs-case=2", "afs-contract=COMPULSORY"})
    COMPULSORY("2", "交强险"),

    @AfsEnum(key = "3", desc = "机动车损失险", mapping = {"afs-case=3", "afs-contract=VEHICLE_LOSS"})
    VEHICLE_LOSS("3", "机动车损失险"),

    @AfsEnum(key = "4", desc = "盗抢险", mapping = {"afs-case=4", "afs-contract=THEFT"})
    THEFT("4", "盗抢险"),

    @AfsEnum(key = "5", desc = "第三者责任险", mapping = {"afs-case=5", "afs-contract=THIRD_PARTY"})
    THIRD_PARTY("5", "第三者责任险"),

    @AfsEnum(key = "6", desc = "车船税", mapping = {"afs-case=6", "afs-contract=VEHICLE_VESSEL_TAX"})
    VEHICLE_VESSEL_TAX("6", "车船税");

    InsuranceTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private String code;
    private String desc;

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
